package com.taobao.api.request;

import com.taobao.api.internal.util.RequestCheckUtils;
import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;

import com.taobao.api.response.RdsDbGetdbResponse;

/**
 * TOP API: taobao.rds.db.getdb request
 * 
 * @author top auto create
 * @since 1.0, 2018.07.25
 */
public class RdsDbGetdbRequest extends BaseTaobaoRequest<RdsDbGetdbResponse> {
	
	

	/** 
	* 账户名
	 */
	private String accountName;

	/** 
	* 实例名
	 */
	private String instanceName;

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	public String getAccountName() {
		return this.accountName;
	}

	public void setInstanceName(String instanceName) {
		this.instanceName = instanceName;
	}

	public String getInstanceName() {
		return this.instanceName;
	}

	public String getApiMethodName() {
		return "taobao.rds.db.getdb";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("account_name", this.accountName);
		txtParams.put("instance_name", this.instanceName);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class<RdsDbGetdbResponse> getResponseClass() {
		return RdsDbGetdbResponse.class;
	}

	public void check() throws ApiRuleException {
		RequestCheckUtils.checkNotEmpty(instanceName, "instanceName");
	}
	

}